

xtset ccode year

* Table 5
xtlogit coup_sys i.conflicttype c.v2x_polyarchy external_conflict ln_gdppc ln_population durable coldwar ten_years, vce (cluster ccode)
outreg2 using Rubust.doc, label addstat(`e(r2_p)') replace cti(raw) 
outreg2 using Rubust.doc, label addstat(`e(r2_p)') eform cti(odds ratio) see

* Table 6
xtreg actmilcabshare c.v2x_polyarchy##i.conflicttype external_conflict ln_gdppc ln_population coldwar coup_takeover coup_attempt ten_years dur, fe vce (cluster ccode)
outreg2 using MainH.doc, replace ctitle ("DV: Share of active duty mil in gov") label addstat(`e(r2_p)') 

* Appendix 1
xtreg actmilcabshare c.v2x_polyarchy##i.lag_conflicttype i.conflicttype external_conflict ln_gdppc ln_population coldwar coup_takeover coup_attempt ten_years dur, fe vce (cluster ccode)
outreg2 using Robust.doc, replace ctitle ("DV: Share of active duty mil in gov") label addstat(`e(r2_p)') 

* Appendix 2 Model 1
xtreg actmilcabshare  i.conflicttype external_conflict ln_gdppc ln_population coldwar coup_takeover coup_attempt ten_years dur if v2x_polyarchy>=0.75, fe vce (cluster ccode)
outreg2 using RobustRR.doc, replace ctitle ("Model 1") label addstat(`e(r2_p)') 

* Appendix 2 Model 2
xtreg actmilcabshare  i.conflicttype external_conflict ln_gdppc ln_population coldwar coup_takeover coup_attempt ten_years dur b5.gov_syst if v2x_polyarchy>=0.75, fe vce (cluster ccode)
outreg2 using RobustRR.doc, append ctitle ("Model 2") label addstat(`e(r2_p)') 







